//
//  AppDelegate.m
//  ScheduleMail
//
//  Created by jihoon on 13. 1. 6..
//  Copyright (c) 2013년 조지훈. All rights reserved.
//

#import "AppDelegate.h"
#import <WebKit/WebKit.h>
@implementation AppDelegate

- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
    // Insert code here to initialize your application
}

- (void)awakeFromNib
{
    [self.window makeFirstResponder: _schedule];
    NSURL *schedule_url = [NSURL URLWithString:@"http://mkjli2.cafe24.com/index.jh"];
    [[_schedule mainFrame] loadRequest:[NSURLRequest requestWithURL:schedule_url]];
    NSURL *mail_url = [NSURL URLWithString:@"http://mail.nhncorp.com"];
    [[_mail mainFrame] loadRequest:[NSURLRequest requestWithURL:mail_url]];
}
- (IBAction)viewMail:(id)sender {
    [_schedule setHidden:YES];
    [_mail setHidden:NO];
    [self.window makeFirstResponder: _schedule];
}

- (IBAction)viewCalendar:(id)sender {
    [_mail setHidden:YES];
    [_schedule setHidden:NO];
    [self.window makeFirstResponder: _mail];
}
@end
